import React from 'react';

import BaseExecuter from '../common/BaseExecuter';
import Constants from '../../common/Constants';

import DataManager from '../../datas/DataManager';

export default class JianyiExecuter extends BaseExecuter {
	constructor() {
		super();
	}

	execute(action) {
		switch (action.name) {
			case 'JianYiSubmitAction':
				this._requestSubmit(action);
				break;
			case 'JianYiRequestOwnedAction':
				this._requestOwned(action);
				break;
			default:
		}
	}

	_getModuleType() {
		return Constants.MODULE_TYPE.JIANYI;
	}
	_requestSubmit(action) {
		this._sendRequestCommonResponse(action, 'sendRequestSubmit');
	}
	_requestOwned(action) {
		this._sendRequestCommonResponse(action, 'sendRequestSuggestOwned');
	}
}
